package com.itheima.tlias08_14.service;

import com.itheima.tlias08_14.annotation.Log;
import com.itheima.tlias08_14.entity.Emp;
import com.itheima.tlias08_14.paramobject.InsertEmp;
import com.itheima.tlias08_14.dto.SelectEmpById;
import com.itheima.tlias08_14.paramobject.SelectPageParam;
import com.itheima.tlias08_14.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpService {
    ResultUtil selectEmp(@Param("spp") SelectPageParam selectPageParam);

    @Log
    int deleteEmpById(@Param("id")List<Integer> id);

    @Log
    int insertEmp(@Param("ise") InsertEmp insertEmp);

    SelectEmpById selectEmpById(@Param("id") Integer id);

    @Log
    int updateEmp(@Param("e") SelectEmpById emp);

    List<Emp> selectAllEmp();
}
